package com.dt.platform.domain.oa;

import com.github.foxnic.dao.entity.Entity;
import io.swagger.annotations.ApiModel;
import javax.persistence.Table;
import com.github.foxnic.sql.meta.DBTable;
import com.dt.platform.constants.db.OaTables.OA_VISITOR_RECORD;
import javax.persistence.Id;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.persistence.Transient;
import com.github.foxnic.api.swagger.EnumFor;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.foxnic.commons.lang.DataParser;
import java.util.Map;
import com.github.foxnic.dao.entity.EntityContext;
import com.dt.platform.domain.oa.meta.VisitorRecordMeta;
import com.github.foxnic.sql.data.ExprRcd;



/**
 * 访客记录
 * <p>访客记录 , 数据表 oa_visitor_record 的PO类型</p>
 * @author 金杰 , maillank@qq.com
 * @since 2025-06-03 12:21:24
 * @sign 297B2CEE24E923AFD4FAF472AFAD9E41
 * 此文件由工具自动生成，请勿修改。若表结构或配置发生变动，请使用工具重新生成。
*/

@Table(name = "oa_visitor_record")
@ApiModel(description = "访客记录 ; 访客记录 , 数据表 oa_visitor_record 的PO类型")
public class VisitorRecord extends Entity {

	private static final long serialVersionUID = 1L;

	public static final DBTable TABLE =OA_VISITOR_RECORD.$TABLE;
	
	/**
	 * 主键：主键
	*/
	@Id
	@ApiModelProperty(required = true,value="主键" , notes = "主键" , example = "699549163813076997")
	private String id;
	
	/**
	 * 访客姓名：访客姓名
	*/
	@ApiModelProperty(required = false,value="访客姓名" , notes = "访客姓名" , example = "12")
	private String visitorName;
	
	/**
	 * 访客手机：访客手机
	*/
	@ApiModelProperty(required = false,value="访客手机" , notes = "访客手机" , example = "12")
	private String visitorMobile;
	
	/**
	 * 访客身份证：访客身份证
	*/
	@ApiModelProperty(required = false,value="访客身份证" , notes = "访客身份证" , example = "12")
	private String visitorCard;
	
	/**
	 * 状态：预约中,进入,离开
	*/
	@ApiModelProperty(required = false,value="状态" , notes = "预约中,进入,离开")
	private String status;
	
	/**
	 * 原因：原因
	*/
	@ApiModelProperty(required = false,value="原因" , notes = "原因" , example = "12")
	private String ct;
	
	/**
	 * 对接人员：对接人员
	*/
	@ApiModelProperty(required = false,value="对接人员" , notes = "对接人员" , example = "水电费")
	private String userName;
	
	/**
	 * 访问时间：访问时间
	*/
	@ApiModelProperty(required = false,value="访问时间" , notes = "访问时间" , example = "2025-06-03 11:38:24")
	private Date visitTime;
	
	/**
	 * 离开时间：离开时间
	*/
	@ApiModelProperty(required = false,value="离开时间" , notes = "离开时间" , example = "2025-06-03 11:38:24")
	private Date leaveTime;
	
	/**
	 * 备注：备注
	*/
	@ApiModelProperty(required = false,value="备注" , notes = "备注" , example = "12")
	private String notes;
	
	/**
	 * 版本：版本
	*/
	@ApiModelProperty(required = true,value="版本" , notes = "版本" , example = "2")
	private Integer version;
	
	/**
	 * 创建人ID：创建人ID
	*/
	@ApiModelProperty(required = false,value="创建人ID" , notes = "创建人ID" , example = "110588348101165911")
	private String createBy;
	
	/**
	 * 创建时间：创建时间
	*/
	@ApiModelProperty(required = false,value="创建时间" , notes = "创建时间" , example = "2025-06-03 11:38:40")
	private Date createTime;
	
	/**
	 * 修改人ID：修改人ID
	*/
	@ApiModelProperty(required = false,value="修改人ID" , notes = "修改人ID" , example = "110588348101165911")
	private String updateBy;
	
	/**
	 * 修改时间：修改时间
	*/
	@ApiModelProperty(required = false,value="修改时间" , notes = "修改时间" , example = "2025-06-03 12:13:42")
	private Date updateTime;
	
	/**
	 * 是否已删除：是否已删除
	*/
	@ApiModelProperty(required = true,value="是否已删除" , notes = "是否已删除" , example = "1")
	private Integer deleted;
	@Transient
	@EnumFor("deleted")
	private Boolean deletedBool;
	
	/**
	 * 删除人ID：删除人ID
	*/
	@ApiModelProperty(required = false,value="删除人ID" , notes = "删除人ID" , example = "110588348101165911")
	private String deleteBy;
	
	/**
	 * 删除时间：删除时间
	*/
	@ApiModelProperty(required = false,value="删除时间" , notes = "删除时间" , example = "2025-06-03 12:13:42")
	private Date deleteTime;
	
	/**
	 * 租户：租户
	*/
	@ApiModelProperty(required = false,value="租户" , notes = "租户" , example = "T001")
	private String tenantId;
	
	/**
	 * 获得 主键<br>
	 * 主键
	 * @return 主键
	*/
	public String getId() {
		return id;
	}
	
	/**
	 * 设置 主键
	 * @param id 主键
	 * @return 当前对象
	*/
	public VisitorRecord setId(String id) {
		this.id=id;
		return this;
	}
	
	/**
	 * 获得 访客姓名<br>
	 * 访客姓名
	 * @return 访客姓名
	*/
	public String getVisitorName() {
		return visitorName;
	}
	
	/**
	 * 设置 访客姓名
	 * @param visitorName 访客姓名
	 * @return 当前对象
	*/
	public VisitorRecord setVisitorName(String visitorName) {
		this.visitorName=visitorName;
		return this;
	}
	
	/**
	 * 获得 访客手机<br>
	 * 访客手机
	 * @return 访客手机
	*/
	public String getVisitorMobile() {
		return visitorMobile;
	}
	
	/**
	 * 设置 访客手机
	 * @param visitorMobile 访客手机
	 * @return 当前对象
	*/
	public VisitorRecord setVisitorMobile(String visitorMobile) {
		this.visitorMobile=visitorMobile;
		return this;
	}
	
	/**
	 * 获得 访客身份证<br>
	 * 访客身份证
	 * @return 访客身份证
	*/
	public String getVisitorCard() {
		return visitorCard;
	}
	
	/**
	 * 设置 访客身份证
	 * @param visitorCard 访客身份证
	 * @return 当前对象
	*/
	public VisitorRecord setVisitorCard(String visitorCard) {
		this.visitorCard=visitorCard;
		return this;
	}
	
	/**
	 * 获得 状态<br>
	 * 预约中,进入,离开
	 * @return 状态
	*/
	public String getStatus() {
		return status;
	}
	
	/**
	 * 设置 状态
	 * @param status 状态
	 * @return 当前对象
	*/
	public VisitorRecord setStatus(String status) {
		this.status=status;
		return this;
	}
	
	/**
	 * 获得 原因<br>
	 * 原因
	 * @return 原因
	*/
	public String getCt() {
		return ct;
	}
	
	/**
	 * 设置 原因
	 * @param ct 原因
	 * @return 当前对象
	*/
	public VisitorRecord setCt(String ct) {
		this.ct=ct;
		return this;
	}
	
	/**
	 * 获得 对接人员<br>
	 * 对接人员
	 * @return 对接人员
	*/
	public String getUserName() {
		return userName;
	}
	
	/**
	 * 设置 对接人员
	 * @param userName 对接人员
	 * @return 当前对象
	*/
	public VisitorRecord setUserName(String userName) {
		this.userName=userName;
		return this;
	}
	
	/**
	 * 获得 访问时间<br>
	 * 访问时间
	 * @return 访问时间
	*/
	public Date getVisitTime() {
		return visitTime;
	}
	
	/**
	 * 设置 访问时间
	 * @param visitTime 访问时间
	 * @return 当前对象
	*/
	public VisitorRecord setVisitTime(Date visitTime) {
		this.visitTime=visitTime;
		return this;
	}
	
	/**
	 * 获得 离开时间<br>
	 * 离开时间
	 * @return 离开时间
	*/
	public Date getLeaveTime() {
		return leaveTime;
	}
	
	/**
	 * 设置 离开时间
	 * @param leaveTime 离开时间
	 * @return 当前对象
	*/
	public VisitorRecord setLeaveTime(Date leaveTime) {
		this.leaveTime=leaveTime;
		return this;
	}
	
	/**
	 * 获得 备注<br>
	 * 备注
	 * @return 备注
	*/
	public String getNotes() {
		return notes;
	}
	
	/**
	 * 设置 备注
	 * @param notes 备注
	 * @return 当前对象
	*/
	public VisitorRecord setNotes(String notes) {
		this.notes=notes;
		return this;
	}
	
	/**
	 * 获得 版本<br>
	 * 版本
	 * @return 版本
	*/
	public Integer getVersion() {
		return version;
	}
	
	/**
	 * 设置 版本
	 * @param version 版本
	 * @return 当前对象
	*/
	public VisitorRecord setVersion(Integer version) {
		this.version=version;
		return this;
	}
	
	/**
	 * 获得 创建人ID<br>
	 * 创建人ID
	 * @return 创建人ID
	*/
	public String getCreateBy() {
		return createBy;
	}
	
	/**
	 * 设置 创建人ID
	 * @param createBy 创建人ID
	 * @return 当前对象
	*/
	public VisitorRecord setCreateBy(String createBy) {
		this.createBy=createBy;
		return this;
	}
	
	/**
	 * 获得 创建时间<br>
	 * 创建时间
	 * @return 创建时间
	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	 * 设置 创建时间
	 * @param createTime 创建时间
	 * @return 当前对象
	*/
	public VisitorRecord setCreateTime(Date createTime) {
		this.createTime=createTime;
		return this;
	}
	
	/**
	 * 获得 修改人ID<br>
	 * 修改人ID
	 * @return 修改人ID
	*/
	public String getUpdateBy() {
		return updateBy;
	}
	
	/**
	 * 设置 修改人ID
	 * @param updateBy 修改人ID
	 * @return 当前对象
	*/
	public VisitorRecord setUpdateBy(String updateBy) {
		this.updateBy=updateBy;
		return this;
	}
	
	/**
	 * 获得 修改时间<br>
	 * 修改时间
	 * @return 修改时间
	*/
	public Date getUpdateTime() {
		return updateTime;
	}
	
	/**
	 * 设置 修改时间
	 * @param updateTime 修改时间
	 * @return 当前对象
	*/
	public VisitorRecord setUpdateTime(Date updateTime) {
		this.updateTime=updateTime;
		return this;
	}
	
	/**
	 * 获得 是否已删除<br>
	 * 是否已删除
	 * @return 是否已删除
	*/
	public Integer getDeleted() {
		return deleted;
	}
	
	/**
	 * 获得 是否已删除 的投影属性<br>
	 * 等价于 getDeleted 方法，获得对应的枚举类型
	 * @return 是否已删除
	*/
	@Transient
	public Boolean isDeleted() {
		if(this.deletedBool==null) {
			this.deletedBool=DataParser.parseBoolean(deleted);
		}
		return this.deletedBool ;
	}
	
	/**
	 * 设置 是否已删除
	 * @param deleted 是否已删除
	 * @return 当前对象
	*/
	@JsonProperty("deleted")
	public VisitorRecord setDeleted(Integer deleted) {
		this.deleted=deleted;
		this.deletedBool=DataParser.parseBoolean(deleted);
		return this;
	}
	
	/**
	 * 设置 是否已删除的投影属性，等同于设置 是否已删除
	 * @param deletedBool 是否已删除
	 * @return 当前对象
	*/
	@Transient
	public VisitorRecord setDeleted(Boolean deletedBool) {
		if(deletedBool==null) {
			this.deleted=null;
		} else {
			this.deleted=deletedBool?1:0;
		}
		this.deletedBool=deletedBool;
		return this;
	}
	
	/**
	 * 获得 删除人ID<br>
	 * 删除人ID
	 * @return 删除人ID
	*/
	public String getDeleteBy() {
		return deleteBy;
	}
	
	/**
	 * 设置 删除人ID
	 * @param deleteBy 删除人ID
	 * @return 当前对象
	*/
	public VisitorRecord setDeleteBy(String deleteBy) {
		this.deleteBy=deleteBy;
		return this;
	}
	
	/**
	 * 获得 删除时间<br>
	 * 删除时间
	 * @return 删除时间
	*/
	public Date getDeleteTime() {
		return deleteTime;
	}
	
	/**
	 * 设置 删除时间
	 * @param deleteTime 删除时间
	 * @return 当前对象
	*/
	public VisitorRecord setDeleteTime(Date deleteTime) {
		this.deleteTime=deleteTime;
		return this;
	}
	
	/**
	 * 获得 租户<br>
	 * 租户
	 * @return 租户
	*/
	public String getTenantId() {
		return tenantId;
	}
	
	/**
	 * 设置 租户
	 * @param tenantId 租户
	 * @return 当前对象
	*/
	public VisitorRecord setTenantId(String tenantId) {
		this.tenantId=tenantId;
		return this;
	}

	/**
	 * 将自己转换成指定类型的PO
	 * @param poType  PO类型
	 * @return VisitorRecord , 转换好的 VisitorRecord 对象
	*/
	@Transient
	public <T extends Entity> T toPO(Class<T> poType) {
		return EntityContext.create(poType, this);
	}

	/**
	 * 将自己转换成任意指定类型
	 * @param pojoType  Pojo类型
	 * @return VisitorRecord , 转换好的 PoJo 对象
	*/
	@Transient
	public <T> T toPojo(Class<T> pojoType) {
		if(Entity.class.isAssignableFrom(pojoType)) {
			return (T)this.toPO((Class<Entity>)pojoType);
		}
		try {
			T pojo=pojoType.newInstance();
			EntityContext.copyProperties(pojo, this);
			return pojo;
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

	/**
	 * 克隆当前对象
	*/
	@Transient
	public VisitorRecord clone() {
		return duplicate(true);
	}

	/**
	 * 复制当前对象
	 * @param all 是否复制全部属性，当 false 时，仅复制来自数据表的属性
	*/
	@Transient
	public VisitorRecord duplicate(boolean all) {
		com.dt.platform.domain.oa.meta.VisitorRecordMeta.$$proxy$$ inst = new com.dt.platform.domain.oa.meta.VisitorRecordMeta.$$proxy$$();
		inst.setLeaveTime(this.getLeaveTime());
		inst.setNotes(this.getNotes());
		inst.setVisitorMobile(this.getVisitorMobile());
		inst.setUpdateTime(this.getUpdateTime());
		inst.setUserName(this.getUserName());
		inst.setVersion(this.getVersion());
		inst.setCt(this.getCt());
		inst.setVisitorName(this.getVisitorName());
		inst.setVisitTime(this.getVisitTime());
		inst.setCreateBy(this.getCreateBy());
		inst.setDeleted(this.getDeleted());
		inst.setCreateTime(this.getCreateTime());
		inst.setUpdateBy(this.getUpdateBy());
		inst.setDeleteTime(this.getDeleteTime());
		inst.setVisitorCard(this.getVisitorCard());
		inst.setTenantId(this.getTenantId());
		inst.setDeleteBy(this.getDeleteBy());
		inst.setId(this.getId());
		inst.setStatus(this.getStatus());
		inst.clearModifies();
		return inst;
	}

	/**
	 * 克隆当前对象
	*/
	@Transient
	public VisitorRecord clone(boolean deep) {
		return EntityContext.clone(VisitorRecord.class,this,deep);
	}

	/**
	 * 将 Map 转换成 VisitorRecord
	 * @param visitorRecordMap 包含实体信息的 Map 对象
	 * @return VisitorRecord , 转换好的的 VisitorRecord 对象
	*/
	@Transient
	public static VisitorRecord createFrom(Map<String,Object> visitorRecordMap) {
		if(visitorRecordMap==null) return null;
		VisitorRecord po = create();
		EntityContext.copyProperties(po,visitorRecordMap);
		po.clearModifies();
		return po;
	}

	/**
	 * 将 Pojo 转换成 VisitorRecord
	 * @param pojo 包含实体信息的 Pojo 对象
	 * @return VisitorRecord , 转换好的的 VisitorRecord 对象
	*/
	@Transient
	public static VisitorRecord createFrom(Object pojo) {
		if(pojo==null) return null;
		VisitorRecord po = create();
		EntityContext.copyProperties(po,pojo);
		po.clearModifies();
		return po;
	}

	/**
	 * 创建一个 VisitorRecord，等同于 new
	 * @return VisitorRecord 对象
	*/
	@Transient
	public static VisitorRecord create() {
		return new com.dt.platform.domain.oa.meta.VisitorRecordMeta.$$proxy$$();
	}

	/**
	 * 从 Map 读取
	 * @param map 记录数据
	 * @param cast 是否用 DataParser 进行类型转换
	 * @return  是否读取成功
	*/
	public boolean read(Map<String, Object> map,boolean cast) {
		if(map==null) return false;
		if(cast) {
			this.setLeaveTime(DataParser.parse(Date.class, map.get(VisitorRecordMeta.LEAVE_TIME)));
			this.setNotes(DataParser.parse(String.class, map.get(VisitorRecordMeta.NOTES)));
			this.setVisitorMobile(DataParser.parse(String.class, map.get(VisitorRecordMeta.VISITOR_MOBILE)));
			this.setUpdateTime(DataParser.parse(Date.class, map.get(VisitorRecordMeta.UPDATE_TIME)));
			this.setUserName(DataParser.parse(String.class, map.get(VisitorRecordMeta.USER_NAME)));
			this.setVersion(DataParser.parse(Integer.class, map.get(VisitorRecordMeta.VERSION)));
			this.setCt(DataParser.parse(String.class, map.get(VisitorRecordMeta.CT)));
			this.setVisitorName(DataParser.parse(String.class, map.get(VisitorRecordMeta.VISITOR_NAME)));
			this.setVisitTime(DataParser.parse(Date.class, map.get(VisitorRecordMeta.VISIT_TIME)));
			this.setCreateBy(DataParser.parse(String.class, map.get(VisitorRecordMeta.CREATE_BY)));
			this.setDeleted(DataParser.parse(Integer.class, map.get(VisitorRecordMeta.DELETED)));
			this.setCreateTime(DataParser.parse(Date.class, map.get(VisitorRecordMeta.CREATE_TIME)));
			this.setUpdateBy(DataParser.parse(String.class, map.get(VisitorRecordMeta.UPDATE_BY)));
			this.setDeleteTime(DataParser.parse(Date.class, map.get(VisitorRecordMeta.DELETE_TIME)));
			this.setVisitorCard(DataParser.parse(String.class, map.get(VisitorRecordMeta.VISITOR_CARD)));
			this.setTenantId(DataParser.parse(String.class, map.get(VisitorRecordMeta.TENANT_ID)));
			this.setDeleteBy(DataParser.parse(String.class, map.get(VisitorRecordMeta.DELETE_BY)));
			this.setId(DataParser.parse(String.class, map.get(VisitorRecordMeta.ID)));
			this.setStatus(DataParser.parse(String.class, map.get(VisitorRecordMeta.STATUS)));
			// others
			return true;
		} else {
			try {
				this.setLeaveTime( (Date)map.get(VisitorRecordMeta.LEAVE_TIME));
				this.setNotes( (String)map.get(VisitorRecordMeta.NOTES));
				this.setVisitorMobile( (String)map.get(VisitorRecordMeta.VISITOR_MOBILE));
				this.setUpdateTime( (Date)map.get(VisitorRecordMeta.UPDATE_TIME));
				this.setUserName( (String)map.get(VisitorRecordMeta.USER_NAME));
				this.setVersion( (Integer)map.get(VisitorRecordMeta.VERSION));
				this.setCt( (String)map.get(VisitorRecordMeta.CT));
				this.setVisitorName( (String)map.get(VisitorRecordMeta.VISITOR_NAME));
				this.setVisitTime( (Date)map.get(VisitorRecordMeta.VISIT_TIME));
				this.setCreateBy( (String)map.get(VisitorRecordMeta.CREATE_BY));
				this.setDeleted( (Integer)map.get(VisitorRecordMeta.DELETED));
				this.setCreateTime( (Date)map.get(VisitorRecordMeta.CREATE_TIME));
				this.setUpdateBy( (String)map.get(VisitorRecordMeta.UPDATE_BY));
				this.setDeleteTime( (Date)map.get(VisitorRecordMeta.DELETE_TIME));
				this.setVisitorCard( (String)map.get(VisitorRecordMeta.VISITOR_CARD));
				this.setTenantId( (String)map.get(VisitorRecordMeta.TENANT_ID));
				this.setDeleteBy( (String)map.get(VisitorRecordMeta.DELETE_BY));
				this.setId( (String)map.get(VisitorRecordMeta.ID));
				this.setStatus( (String)map.get(VisitorRecordMeta.STATUS));
				// others
				return true;
			} catch (Exception e) {
				return false;
			}
		}
	}

	/**
	 * 从 Map 读取
	 * @param r 记录数据
	 * @param cast 是否用 DataParser 进行类型转换
	 * @return  是否读取成功
	*/
	public boolean read(ExprRcd r,boolean cast) {
		if(r==null) return false;
		if(cast) {
			this.setLeaveTime(DataParser.parse(Date.class, r.getValue(VisitorRecordMeta.LEAVE_TIME)));
			this.setNotes(DataParser.parse(String.class, r.getValue(VisitorRecordMeta.NOTES)));
			this.setVisitorMobile(DataParser.parse(String.class, r.getValue(VisitorRecordMeta.VISITOR_MOBILE)));
			this.setUpdateTime(DataParser.parse(Date.class, r.getValue(VisitorRecordMeta.UPDATE_TIME)));
			this.setUserName(DataParser.parse(String.class, r.getValue(VisitorRecordMeta.USER_NAME)));
			this.setVersion(DataParser.parse(Integer.class, r.getValue(VisitorRecordMeta.VERSION)));
			this.setCt(DataParser.parse(String.class, r.getValue(VisitorRecordMeta.CT)));
			this.setVisitorName(DataParser.parse(String.class, r.getValue(VisitorRecordMeta.VISITOR_NAME)));
			this.setVisitTime(DataParser.parse(Date.class, r.getValue(VisitorRecordMeta.VISIT_TIME)));
			this.setCreateBy(DataParser.parse(String.class, r.getValue(VisitorRecordMeta.CREATE_BY)));
			this.setDeleted(DataParser.parse(Integer.class, r.getValue(VisitorRecordMeta.DELETED)));
			this.setCreateTime(DataParser.parse(Date.class, r.getValue(VisitorRecordMeta.CREATE_TIME)));
			this.setUpdateBy(DataParser.parse(String.class, r.getValue(VisitorRecordMeta.UPDATE_BY)));
			this.setDeleteTime(DataParser.parse(Date.class, r.getValue(VisitorRecordMeta.DELETE_TIME)));
			this.setVisitorCard(DataParser.parse(String.class, r.getValue(VisitorRecordMeta.VISITOR_CARD)));
			this.setTenantId(DataParser.parse(String.class, r.getValue(VisitorRecordMeta.TENANT_ID)));
			this.setDeleteBy(DataParser.parse(String.class, r.getValue(VisitorRecordMeta.DELETE_BY)));
			this.setId(DataParser.parse(String.class, r.getValue(VisitorRecordMeta.ID)));
			this.setStatus(DataParser.parse(String.class, r.getValue(VisitorRecordMeta.STATUS)));
			return true;
		} else {
			try {
				this.setLeaveTime( (Date)r.getValue(VisitorRecordMeta.LEAVE_TIME));
				this.setNotes( (String)r.getValue(VisitorRecordMeta.NOTES));
				this.setVisitorMobile( (String)r.getValue(VisitorRecordMeta.VISITOR_MOBILE));
				this.setUpdateTime( (Date)r.getValue(VisitorRecordMeta.UPDATE_TIME));
				this.setUserName( (String)r.getValue(VisitorRecordMeta.USER_NAME));
				this.setVersion( (Integer)r.getValue(VisitorRecordMeta.VERSION));
				this.setCt( (String)r.getValue(VisitorRecordMeta.CT));
				this.setVisitorName( (String)r.getValue(VisitorRecordMeta.VISITOR_NAME));
				this.setVisitTime( (Date)r.getValue(VisitorRecordMeta.VISIT_TIME));
				this.setCreateBy( (String)r.getValue(VisitorRecordMeta.CREATE_BY));
				this.setDeleted( (Integer)r.getValue(VisitorRecordMeta.DELETED));
				this.setCreateTime( (Date)r.getValue(VisitorRecordMeta.CREATE_TIME));
				this.setUpdateBy( (String)r.getValue(VisitorRecordMeta.UPDATE_BY));
				this.setDeleteTime( (Date)r.getValue(VisitorRecordMeta.DELETE_TIME));
				this.setVisitorCard( (String)r.getValue(VisitorRecordMeta.VISITOR_CARD));
				this.setTenantId( (String)r.getValue(VisitorRecordMeta.TENANT_ID));
				this.setDeleteBy( (String)r.getValue(VisitorRecordMeta.DELETE_BY));
				this.setId( (String)r.getValue(VisitorRecordMeta.ID));
				this.setStatus( (String)r.getValue(VisitorRecordMeta.STATUS));
				return true;
			} catch (Exception e) {
				return false;
			}
		}
	}
}